const express = require('express');
const exec = require('child_process').exec;
const app = express();

// 判断账户是否存在（是否已初始化）
app.get('/deploy', (_req, res) => {
  exec('sh ./build.sh', err => {
    console.log(err);
  });
  res.json({ a: 1 });
});

app.listen(9901, () => {
  console.log('server is running: http://127.0.0.1:9901');
});
